<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
   <input type="text" id="text">
 </body>
 <script>
   var text = document.getElementById("text");
   function show(){
   var time = new Date();
   var hours = time.getHours();
   var minutes = time.getMinutes();
   var seconds = time.getSeconds();
   text.value = hours+":"+minutes+":"+seconds;
   setTimeout(show,1000);
   }
   show();
 </script>
</html>
